package edu.ynu.po;
// default package

import java.util.HashSet;
import java.util.Set;


/**
 * Position entity. @author MyEclipse Persistence Tools
 */

public class Position  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private Position superior;
     private Department department;
     private String name;
     private String purpose;
     private String content;
     private String duty;
     private Set inferiors = new HashSet(0);


    // Constructors

    /** default constructor */
    public Position() {
    }

    
    /** full constructor */
    public Position(Position superior, Department department, String name, String purpose, String content, String duty, Set inferiors) {
        this.superior = superior;
        this.department = department;
        this.name = name;
        this.purpose = purpose;
        this.content = content;
        this.duty = duty;
        this.inferiors = inferiors;
    }

   
    // Property accessors

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }

    public Position getSuperior() {
        return this.superior;
    }
    
    public void setSuperior(Position superior) {
        this.superior = superior;
    }

    public Department getDepartment() {
        return this.department;
    }
    
    public void setDepartment(Department department) {
        this.department = department;
    }

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }

    public String getPurpose() {
        return this.purpose;
    }
    
    public void setPurpose(String purpose) {
        this.purpose = purpose;
    }

    public String getContent() {
        return this.content;
    }
    
    public void setContent(String content) {
        this.content = content;
    }

    public String getDuty() {
        return this.duty;
    }
    
    public void setDuty(String duty) {
        this.duty = duty;
    }

    public Set getinferiors() {
        return this.inferiors;
    }
    
    public void setInferiors(Set inferiors) {
        this.inferiors = inferiors;
    }
   








}